﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace Tibet.Logica
{
    public sealed class ConfiguracionBD : ConfigurationSection
    {
        public ConfiguracionBD()
        {
        }

        [ConfigurationProperty("nombre", IsRequired = true)]
        public string Nombre
        {
            get { return (string)base["nombre"]; }
            set { this["nombre"] = value; }
        }

        [ConfigurationProperty("usuario", IsRequired = true)]
        public string Usuario
        {
            get { return (string)base["usuario"]; }
            set { this["usuario"] = value; }
        }

        [ConfigurationProperty("password", IsRequired = true)]
        public string Password
        {
            get { return (string)base["password"]; }
            set { this["password"] = value; }
        }

        [ConfigurationProperty("fuente_datos", IsRequired = true)]
        public string FuenteDatos
        {
            get { return (string)base["fuente_datos"]; }
            set { this["fuente_datos"] = value; }
        }

        [ConfigurationProperty("connection_string", IsRequired = true)]
        public string ConnectionString
        {
            get { return (string)base["connection_string"]; }
            set { this["connection_string"] = value; }
        }
    }
}